﻿using Admin.Menus;
using Admin.Roles;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.RoleMenus
{
    public class RoleMenu
    {
        /// <summary>
        /// 角色菜单表
        /// </summary>
        public int RoleMenuId { get; set; }

        /// <summary>
        /// 菜单ID
        /// </summary>
        [ForeignKey("MenuId")]
        public Menu Menu { get; set; }

        public int MenuId { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        [ForeignKey("RoleId")]
        public Role Role { get; set; }

        public int RoleId { get; set; }
    }
}
